#ifndef NAVBAR_H
#define NAVBAR_H

#include <QWidget>
#include <QMouseEvent>

namespace Ui {
class Navbar;
}

class Navbar : public QWidget
{
    Q_OBJECT

public:
    explicit Navbar(QWidget *parent = nullptr);
    ~Navbar();

protected:
    void mousePressEvent(QMouseEvent *event) override;
    void mouseMoveEvent(QMouseEvent *event) override;

signals:
    void homeClicked();
    void msgClicked();
    void friendsClicked();

private slots:
    void on_homeBtn_clicked();
    void on_msgBtn_clicked();
    void on_friendsBtn_clicked();

private:
    Ui::Navbar *ui;
    QPoint dragPosition;
};

#endif // NAVBAR_H
